home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 014 / swapname.arc / SWAPNAME.DOC < prev   
Encoding:
Text File  |  1986-02-20  |  1.3 KB  |  39 lines

  1.  
  2. SWAPNAME Command
  3. ----------------
  4.  
  5. Purpose:  To change the names of two disk files to that
  6.           of the other file.
  7.  
  8. Format:   SWAPNAME  [d:][path]filename.ext  [d:][path][filename.ext
  9.  
  10. Remarks:  The drive and path names are optional. If omitted, the
  11.           current drive and path name is used.
  12.  
  13.           File names must be supplied for both files. The files
  14.           may be on different drives and/or in different paths.
  15.  
  16.           If any errors are encountered, such as invalid file names,
  17.           both files are restored to their original names, and an
  18.           error message is issued. The message contains a return
  19.           code from the RENAME function. Refer to the DOS manual
  20.           for its meaning.
  21.  
  22.           Copyright Vernon D. Buerg, Feb 20, 1986. For the IBM PC
  23.           using DOS 2.0 or later. Public domain. All rights reserved.
  24.  
  25. Examples:
  26.           o  Swap the names for the files TEST.NEW and TEST.OLD:
  27.  
  28.                 SWAPNAME TEST.NEW TEST.OLD
  29.  
  30.           o  Swap the names for the file OLD.DAT in subdirectory
  31.              SAVE on drive A: to NEW.DAT in subdirectory WORK on
  32.              drive B:
  33.  
  34.                 SWAPNAME A:\SAVE\OLD.DAT  B:\WORK\NEW.DAT
  35.  
  36.              There is now a file called NEW.DAT in directory SAVE on
  37.              drive A, and one called OLD.DAT in directory WORK on drive B.
  38.  
  39.